#ifndef USERCONFIGMANAGER_H
#define USERCONFIGMANAGER_H

#include <QObject>
#include <QString>
#include "jsonconfigwriter.h"

class UserConfigManager : public QObject
{
    Q_OBJECT
public:
    explicit UserConfigManager(QObject *parent = nullptr);


    // 复制用户配置：把 srcUser 的配置复制成 newUser
    bool copyUser(const QString &srcUser,const QString &newUser,QString &errorMsg);

signals:
    // 可以发信号通知 UI 层刷新
     void userCopied(const QString &newUser);
private:
     JsonConfigWriter *jsonconfigwriter;
};

#endif // USERCONFIGMANAGER_H
